{% extends '::base.html.twig' %} 
{% block module_name %}Ensamblado{% endblock %}
{% block title %}Ensamblado :: Listar{% endblock %}
{% block customScripts %}
<script src="{{ asset('bundles/EndorBundle/js/jquery.dataTables.min.js') }}"></script>
{% endblock %}
{% block body %}
<h2>Ensamblado :: Listar</h2>
<div class="widget_inside">
    <table class="records_list regular">
        <thead>
            <tr>
                <th>Serial</th>
                <th>Referencia</th>
                <th>Marca</th>
                <th>Modelo</th>
                <th>Color</th>
                <th>Catego&iacute;a</th>
                <th>Acciones</th>
            </tr>
            </thead>
            <tbody>
    {% for entity in entities %}
                    <tr>
                        <td>{{ entity.serial }}</td>
                        <td>{{ entity.referencia }}</td>
                        <td>{{ entity.marca }}</td>
                        <td>{{ entity.modelo }}</td>
                        <td>{{ entity.color }}</td>
                        <td>{{ entity.Categoria.nombre }}</td>
                        <td>    
                            <a href="{{ path('ensamblado_new', { 'id': entity.id }) }}" class="button small blue">Ensamblar</a>    
                        </td>
                    </tr>
    {% endfor %}
                    </tbody>
                </table>
</div>
<script>
$(document).ready(function(){
    $('.regular').dataTable({
        "sPaginationType": "full_numbers",
        "bJQueryUI": true
    });
});
</script>
{% endblock %}